home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_toolbx.arc / KEYIO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-30  |  1.2 KB  |  51 lines

  1. /* keyio.h - definitions of values returned by getkey() */
  2.  
  3. /* keypress return values    */
  4. #define NO_INPUT    0
  5. /* non-zero return means there is input waiting  */
  6.  
  7. /* ASCII control characters    */
  8.  
  9. #define ASCNUL           (256+3)
  10. #define ASCBEL          7
  11. #define ASCBS          8
  12. #define ASCTAB          9
  13. #define ASCLF        0xA
  14. #define ASCFF        0xC
  15. #define ASCCR        0xD
  16. #define ASCESC           0x1B
  17. #define ASCDEL           0x7F
  18. #define ASCSPACE       0x20
  19.  
  20. /* special keys for IBM PC  */
  21.  
  22. #define HOMEKEY     (256+71)
  23. #define BACKTAB     (256+15)
  24. #define UPARROW     (256+72)
  25. #define LEFTARROW    (256+75)
  26. #define RIGHTARROW    (256+77)
  27. #define ENDKEY        (256+79)
  28. #define DOWNARROW    (256+80)
  29. #define PGUPKEY     (256+73)
  30. #define PGDNKEY     (256+81)
  31. #define INSERTKEY    (256+82)
  32. #define DELETEKEY    (256+83)
  33. #define CTLPRTSC    (256+114)
  34. #define CTLLARROW    (256+115)
  35. #define CTLRARROW    (256+116)
  36. #define CTLEND        (256+117)
  37. #define CTLPGDN     (256+118)
  38. #define CTLHOME     (256+119)
  39. #define CTLPGUP     (256+132)
  40.  
  41. /* function key codes  */
  42. #define F1KEY        (256+59)
  43. #define F11KEY        (256+84)
  44. #define F21KEY        (256+94)
  45. #define F31KEY        (256+104)
  46.  
  47. /* alt-key + number key (top row)  */
  48. #define ALT1KEY     (256+120)
  49.  
  50.  
  51.